package com.sss.hloster0402;

import java.io.Serializable;

public class Student implements Serializable{
		/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
		/**
		 * 
		 */
	
		
		// 属性
		private String stuName;
		private String stuNum;
		private  transient  double stuScore;

		// 行为
		/**
		 * 行为方法：输出学生个人信息
		 */
		public void printMe() {
			System.out.println("姓名：" + stuName + ", 学号：" + stuNum + ", 成绩：" + stuScore);
		}

		// 构造方法
		public Student() {
			super();
		}

		public Student(String stuName, String stuNum, double stuScore) {
			super();
			this.stuName = stuName;
			this.stuNum = stuNum;
			this.stuScore = stuScore;
		}

		// getter/setter方法接口

		public String getStuName() {
			return stuName;
		}

		public void setStuName(String stuName) {
			this.stuName = stuName;
		}

		public String getStuNum() {
			return stuNum;
		}

		public void setStuNum(String stuNum) {
			this.stuNum = stuNum;
		}

		public double getStuScore() {
			return stuScore;
		}

		public void setStuScore(double stuScore) {
			this.stuScore = stuScore;
		}

		@Override
		public String toString() {
			return "Student [stuName=" + stuName + ", stuNum=" + stuNum + ", stuScore=" + stuScore + "]";
		}
		

	}


